<template>
	
	<view class="userPopupShow" v-if="userPopupShow">
		<view class="userPopupShow-mask" @click="closeUserPopup"></view>
		<view class="userPopupShow-c">
			<view class="userPopupShow-close" @click="closeUserPopup">
				<u-icon name="close" color="#909399" size="20"></u-icon>
			</view>
			<scroll-view class="userPopupShow-c-list" scroll-y="true" @scrolltolower="scrolltolower">
				<rich-text :nodes="nodes" class="hh"></rich-text>
			</scroll-view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				userPopupShow: false,
				nodes: ''
			}
		},
		methods:{
			closeUserPopup(){
				this.userPopupShow = false
			},
			
			show(tx){
				this.nodes = tx
				this.userPopupShow = true
				
			},
		
		}
	}
</script>

<style lang="scss" scoped>
	.hh {
	  word-break: break-all !important;
	  white-space: pre-wrap !important;
	}
	.userPopupShow {
		width: 100vw;
		height: 100vh;
		position: fixed;
		top: 0;
		right: 0;
		z-index: 999999;
		.userPopupShow-mask {
			width: 100%;
			height: 100%;
			background: rgba(0,0,0,0.2);
		}
		.userPopupShow-c {
			width: 600rpx;
			height: fit-content;
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			margin: auto;
			z-index: 2;
			background: white;
			border-radius: 30rpx;
			box-shadow: 0 0 12rpx #e4e4e4;
			.userPopupShow-close {
				display: flex;
				justify-content: flex-end;
				box-sizing: border-box;
				padding-right: 20rpx;
				padding-top: 20rpx;
				position: absolute;
				right: 0;
				top: 0;
				z-index: 6;
			}
			.userPopupShow-c-list {
				width: 100%;
				padding: 30rpx;
				height: 620rpx;
				overflow-y: scroll;
				box-sizing: border-box;
				
				
			}
		}
		
	}
	
</style>